/**
 * 作者:hanbo
 * 日期:2018/12/715:33
 * 描述:面状样式
 */
import {Style} from "./Style";
import {FillStyle} from "./FillStyle";
import {LineStyle} from "./LineStyle";

export class PolygonStyle extends Style {
    /**
     * 构造器，默认不填充，只画线
     */
    constructor(drawLine=true,fill=false,fillStyle=new FillStyle(),lineStyle=new LineStyle()) {
        super();
        if(drawLine){
            this.lineStyle=lineStyle;
        }
        if(fill){
            this.fillStyle=fillStyle;
        }
    }
}
